package com.sunkyc.framework.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 登录日志记录
 * </p>
 *
 * @author sunkyc
 * @since 2022-06-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_login_log")
@ApiModel(value="SysLoginLog对象", description="登录日志记录")
public class SysLoginLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "log_id", type = IdType.AUTO)
    private String logId;

    @ApiModelProperty(value = "登陆用户名")
    private String loginUsername;

    @ApiModelProperty(value = "登录时间")
    private LocalDateTime loginTime;

    @ApiModelProperty(value = "登陆结果")
    private String loginResult;

    @ApiModelProperty(value = "客户端ip")
    private String ipAddr;

    @ApiModelProperty(value = "客户端IP映射地址")
    private String ipSources;

    @ApiModelProperty(value = "浏览器名称")
    private String browerName;

    @ApiModelProperty(value = "系统名称")
    private String systemName;

    @ApiModelProperty("登录状态 0-成功 1-失败")
    private String loginState;


}
